//
//  ScoreViewController.m
//  KeleAppProject
//
//  Created by Cen Zhou on 2018/1/17.
//  Copyright © 2018年 Cen Zhou. All rights reserved.
//

#import "ScoreViewController.h"
#import "ScoreView.h"
@interface ScoreViewController ()

@property (nonatomic, strong) ScoreView *scoreView;
@end

@implementation ScoreViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    [self loadSubviewsOnScoreView];
}

- (void)loadSubviewsOnScoreView{
    ScoreView *scoreView = [[ScoreView alloc]init];
    scoreView.backgroundColor = [UIColor whiteColor];
    self.scoreView = scoreView;
    scoreView.signalDelegate = [RACSubject subject];
    [scoreView.signalDelegate subscribeNext:^(id x) {
        [self.navigationController popViewControllerAnimated:YES];
    }];
    [self.view addSubview:scoreView];
    [scoreView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(self.view);
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
